package com.hospital;

import java.time.LocalDate;
import java.util.ArrayList;
import java.util.UUID;

public class Doctor {
    private String id;
    private String name;
    private LocalDate joinDate;
    private String description;
    private ArrayList<Schedule> schedules = new ArrayList<>();

    public Doctor(String name, LocalDate joinDate, String description) {
        this.id = UUID.randomUUID().toString();
        this.name = name;
        this.joinDate = joinDate;
        this.description = description;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public LocalDate getJoinDate() {
        return joinDate;
    }

    public void setJoinDate(LocalDate joinDate) {
        this.joinDate = joinDate;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public ArrayList<Schedule> getSchedules() {
        return schedules;
    }

    public void setSchedules(ArrayList<Schedule> schedules) {
        this.schedules = schedules;
    }

    @Override
    public String toString() {
        return "{id=" + id + ", name=" + name + ", joinDate=" + joinDate + ", description=" + description
                + ", schedules=" + schedules + "}";
    }

}
